package test;

import com.school.entity.Student;
import com.school.entity.Teacher;
import com.school.entity.Course;

public class Test {
    public static void main(String[] args) {

        Teacher teacher1 = new Teacher("T001", "张老师", "男");
        Teacher teacher2 = new Teacher("T002", "李老师", "女");


        Course course1 = new Course("C001", "Java编程", "A101", "周一 8:00-10:00");
        Course course2 = new Course("C002", "数据结构", "B202", "周二 14:00-16:00");
        teacher1.setCourse(course1);
        teacher2.setCourse(course2);
        course1.setTeacher(teacher1);
        course2.setTeacher(teacher2);


        Student student1 = new Student("S001", "小明", "男");
        Student student2 = new Student("S002", "小红", "女");
        student1.selectCourse(course1);
        student2.selectCourse(course2);


        System.out.println("----- 教师课表 -----");
        teacher1.printWorksheet();
        teacher2.printWorksheet();

        System.out.println("----- 学生课表 -----");
        student1.printWorksheet();
        student2.dropCourse();
        student2.printWorksheet();
    }
}